package com.software.model;

public class Admin {
    // 管理员ID
    private String adminId;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 权限级别
    private String role;

    // 构造方法
    public Admin(String adminId, String username, String password, String role) {
        this.adminId = adminId;
        this.username = username;
        this.password = password;
        this.role = role;
    }

    // 无参构造方法
    public Admin() {}

    // 获取管理员ID
    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    // 获取用户名
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    // 获取密码
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    // 获取权限级别
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "Admin{" +
                "adminId='" + adminId + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
